﻿using System;
using System.Collections.Generic;
using System.IO;

namespace _6.jkxt
{
    public class CSName
    {
        public string fileSatelliteData = Environment.CurrentDirectory + @"\text\\SatelliteData";
      
        //X轴角获取 fW
        public int fWserverReciveLength = 0;
        public byte[] fWreadBufCtl = new byte[6];
        public byte[] fWreadBufCtls = new byte[6];
        public byte[] fWserverReciveBuffer = new byte[5000];
        public int fwQs = 0;//X轴编码圈数
        public double fWySjD = 0;//X轴运算角度
        //public int fWallData = 0;

        //Y轴角获取 fY
        public int fYserverReciveLength = 0;
        public byte[] fYreadBufCtl = new byte[6];
        public byte[] fYreadBufCtls = new byte[6];
        public byte[] fYserverReciveBuffer = new byte[5000];
        //public int fYallData = 0;

        //text参数表
        public string[,] pl = new string[100, 2]; //参数数组
        public string fwSd = "0";
        public string fySd = "0";
        //预置位置
        public string[] yzWz = new string[1000]; //预置位置
        //速度计算
        public double[] sDFw = new double[] { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 };
        public double[] sDFy = new double[] { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 };


        //开始结束时间
        //public DateTime ksTime;
        //public DateTime jsTime;
        //星历信息
        public int dfk = 0;//单星时间索引
        public string[] dXl = new string[3]; //单星历数组
        public string[] dtimfNew = new string[100]; //单星时间段
        public string dxlAdress;//单星星历地址
        public int sfk = 0;//多星时间索引

        public string[] sXl = new string[999]; //多星历数组
        public string[] stimfNew = new string[100]; //多星时间段
        public string sxlAdress;//多星星历地址
        public string[] sxlm = new string[99]; //多星星历名数组

        public string[] jgNew = new string[99999]; //记忆跟踪数据
        public string sjAdress;//单星星历地址
        public string[] satelliteName = new string[500]; //
        public double[] satelliteJd = new double[500]; //
        public string[] satelliteJd1 = new string[500]; //
        public double[] satelliteJd2 = new double[500]; //
        public double[] satelliteJd3 = new double[500]; //
        //面板信息
        //public double tfWjD = 0;//X轴实时角度
        //public double tfYjD = 0;//Y轴实时角度
        //public double[] fWjDs = new double[] { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 };
        //public double[] fYjDs = new double[] { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 };
        public double[] tfWjD = new double[] { 0, 0 };
        public double[] tfYjD = new double[] { 0, 0 };
        public double[] sfWjD = new double[] { 0, 0 };
        public double[] sfYjD = new double[] { 0, 0 };
        public string mxtTime = "0";//系统时间
        public string mksTime = "";//开始时间
        public string mjsTime = "";//结束时间
        public string mWxName = "0";//卫星名
        public string mQc = "0";//圈次
        public double fWjD = 0;//X轴实时角度
        public double fYjD = 0;//Y轴实时角度
        public double PjD = 0;//Y轴实时角度
        public double fWYsjD = 0;//显示X轴预设角度
        public double fYYsjD = 0;//显示Y轴预设角度
        public double fWjyjD = 0;//X轴记忆角度
        public double fYjyjD = 0;//Y轴记忆角度
        public double zxWzFw = 0; //X轴命令
        public double zxWzFy = 0;//Y轴命令
        public double zxWzJh = 0;//Y轴命令
        public string sdssFw = "00.00º/S"; //实时X轴速度
        public string sdssFy = "00.00º/S";//实时Y轴速度
        public string sdssJh = "00.00º/S";//实时极化轴速度
        public double sdzlFw = 1.000; //X轴速度指令
        public double sdzlFy = 1.000;//Y轴速度指令
        public double AGC = 0; //门限值
        public bool boolAGC = true; //是否在门限值内
        public int wxSy = 0; //卫星索引
        //远程
        public string strGetSata = "";
        //日志信息
        public Queue<string> rzArray = new Queue<string>(1);


        public double fwXs = 449;//X轴速度比例系数
        public double fyXs = 1000;//Y轴速度比例系数
        public double fwPy = 0;//X轴速度偏移
        public double fyPy = 0;//Y轴速度偏移

        public double fWa = 0;//X轴加速度
        public double fYa = 0;//Y轴加速度

        //public float fwDySd= 0;//X轴速度电压
        public bool fwSk = false;//是否手控
        public bool fySk = false;//是否手控

        //PID
        public string[] dwJd;


        public string ksTime = "";//开始时间
        public string jsTime = "";//结束时间

        public bool webSatelliteData = false;//是否远端更新
        public string SatelliteDataURL = "";

        //预置卫星参数
        public double YUposition;
        public double YUpitch;
        public double YUpolarization;
        public string YUsatelliteName;//卫星名
        public double YUbeaconFrequency;//信标频率
        public int YUpolarizationMode;//极化方式
        public double YUlongitude;//经度
        public double YUAngle=0.0000;//极化角


        public int Mode=1;//运行模式(1非同步;2同步)
    }
}
